package com.aji.controller;

import com.aji.entity.Models;
import com.aji.result.Result;
import com.aji.service.ModelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Slf4j
@Api(tags = "模型管理")
@RequestMapping("/model")
public class ModelController {
    @Autowired
    private ModelService modelService;
    @ApiOperation("查询 模型")
    @GetMapping
    public Result selectModel(){
        List<Models> modelList = modelService.selectModel();
        return Result.success(modelList);

    }
}
